<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html>
    <head>
        <script>
            window.fbAsyncInit = function() {
                FB.init({
                    appId      : '<?php echo $app_id ?>',
                    status     : true, 
                    cookie     : true,
                    xfbml      : true,
                    oauth      : true
                });
            };
            (function(d){
                var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return false;}
                js = d.createElement('script'); js.id = id; js.async = true;
                js.src = "//connect.facebook.net/en_US/all.js";
                d.getElementsByTagName('head')[0].appendChild(js);
                setTimeout('window.opener.location.reload()',3000);
                setTimeout('window.close()',4000); 
            }(document));        
        </script>
    </head>
    <body>
        <div id="fb-root"></div>
    <br/>
    <br/>
    <br/>
    <br/>
    <div style="padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;text-align:center"><img src="<?php echo image_path('fb_loading.gif') ?>" alt="Please Wait ..." /></div>
</body>
</html>